<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" href="js/layui/layui/css/layui.css" />
	</head>
	<body>
		<fieldset class="layui-elem-field">
			<legend>信息维护</legend>
			<div class="layui-field-box">
				<div class="layui-form-item">
					<label class="layui-form-label">姓名</label>
					<div class="layui-input-inline">
						<input type="text" name="name2" placeholder="请输入查询的姓名" autocomplete="off" class="layui-input">
					</div>
					<input type="button" onclick="sel()" value="搜索" class="layui-btn" />
					<button type="button" class="layui-btn">添加</button>
				</div>
				<table class="layui-table" style="width: 99%;">
					<thead>

						<th style="width: 10%;">ID</th>
						<th style="width: 10%;">姓名</th>
						<th style="width: 10%;">年龄</th>
						<th style="width: 10%;">生日</th>
						<th style="width: 10%;">操作</th>
					</thead>
					<tbody id="tbody">

					</tbody>
				</table>

			</div>
		</fieldset>


		<script type="text/html" id="testa">
			<form class="layui-form">
				<div class="layui-form-item">
					<label class="layui-form-label">姓名</label>
					<div class="layui-input-inline">
						<input type="text" name="name" required lay-verify="required" placeholder="请输入姓名" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">年龄</label>
					<div class="layui-input-inline">
						<input type="text" name="age" required lay-verify="required" placeholder="请输入年龄" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				
				<div class="layui-form-item">
					<label class="layui-form-label">生日</label>
					<div class="layui-input-inline">
						<input type="text" id="birth" name="birth" required lay-verify="required" placeholder="请输入生日" autocomplete="off"
							class="layui-input">
					</div>
				</div>

				<div class="layui-form-item">
					<div class="layui-input-block">
						<input type="button" lay-submit lay-filter="formDemo" value="确定" class="layui-btn" />
						<input type="reset" class="layui-btn layui-btn-primary" />
						<input type="button" value="关闭" class="layui-btn" />
						<!-- <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
		        <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
					</div>
				</div>
			</form>
		</script>




		<script type="text/html" id="tradd">
			<tr id="tr{{d.id}}">
				<td id="tda{{d.id}}">{{d.id}}</td>
				<td id="tdb{{d.id}}">{{d.name}}</td>
				<td id="tdc{{d.id}}">{{d.age}}</td>
				<td id="tdd{{d.id}}">{{d.birth}}</td>
				<td id="tde{{d.id}}">
					<a href="javascript:del({{d.id}});" class="layui-btn layui-btn-danger">
						<i class="layui-icon layui-icon-delete"></i>
					</a>
					<a href="javascript:upd({{d.id}});" class="layui-btn layui-btn-normal">修改</a>
				</td>
			</tr>
		</script>

		

		<script src="js/layui/layui/layui.js"></script>
		<script src="js/tanchuceng.js"></script>
	</body>
</html>
